<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>燃烧卡路里</title>
    <script>
      var weight= window.prompt("请输入体重（kg）:");
      var height= window.prompt("请输入身高（m）:");
      var BMI=weight/(height*height);
      if(BMI<18.5){
        alert("骨感");
      }else if(BMI<24){
        alert("标准身材");
      }else if(BMI<28){
        alert("丰满");
      }else if (BMI<32) {
        alert("肥胖");
      }else{
        alert("需要燃烧卡路里");
      }
    </script>
  </head>
  <body>
    
  </body>
  
</html>
